9. analog vs digital

你好。
Hello.

在本教程中,我们将了解模拟。
In this tutorial, we will take a look to analog.

对于数字信号,好的,那么现在什么是模拟信号,什么是数字信号,为什么这些信号对我们来说非常重要?
To digital signals, OK, so now what is analog signal and what is digital signal and why these signals are really important for us?

好的,首先,让我们从模拟信号开始。
OK, first of all, let's start with the analog signals.

模拟信号可以。
The analog signals can be.

像那样?
Like that?

好的,我会。
OK, I will.

就这样驱动,好吧,数字信号就是这样。
Drove it like that, OK, and digital signals are like that.

好的。
OK.

我会这样说,好吧,没关系。
And I'll put it like that, OK, it doesn't matter.

现在让我们解释一下模拟信号随时间的变化,好吗?
So now let's explain about the analog signal is change through time, OK?

这是我们的时代,这就是我们的价值,好吗?
This is our time and this is our value, OK?

例如,最大电压为 10 伏和零伏,并且随着时间的推移它会发生变化。
For example, this is maximum 10 volt and zero volt, and in time it's changing.

但数字信号并没有改变。
But digital signals is not changing.

好的,这是我们的五伏电压。
OK, this is our five volt in here.

您只能看到句号。
You can see just the period.

好的,现在这是如何运作的?
OK, so now how this are working?

例如,在 TLC 程序中。
For example, in the TLC program.

你有一个坦克。
You have a tank.

好的。
OK.

这个坦克就是这样的。
This tank is like that.

这是我们的最大值点,这是我们的最小值点,这是我们的最大值,根据最大值,我们读取 10 伏、零伏,或者我们可以读取例如公式二。
And this is our maximum point, and this is our minimum point and that this is our maximum that according to maximum, we are reading 10 volt, zero volt or we can read, for example, Formula two.

对我来说,这并不重要。
And to me, it doesn't matter.

所以现在当这个。
So now when this.

谢谢就OK了。
Thank is OK.

例如,任何与水有关的交易现在都消失了。
For example, any deal with water is gone now.

它已经改变了,所以现在这六个做得很好。
It has changed, so now this is six well done.

我们怎样才能读到这个呢?
How can we read this?

好的,我们正在读取这些值。
OK, so we are reading these values.

乌纳拉克就是你所看到的吗?
Is Unalaq what you saw?

它正在改变。
It is changing.

例如,这个 Unalaq 值可以是一点二十三。
So this Unalaq value, you can be, for example, one point twenty three.

该解锁值可以是例如三点七。
This unlock value can be, for example, three point seven.

但数字值始终为五伏或零伏。
But digital values are always five volt or the zero volt.

好的,这意味着零或一。
OK, so that means zero or one.

所以这意味着假或真。
So that means false or true.

好的。
OK.

例如,在政策逻辑中,你又遇到了这个。
So in the policy logic, for example, you have this again.

现在,如果它处于活动状态,那么我们就有一个输出,该输出为故障或零。
So now this is if this is active, OK, so we have an output for this output is to at fault or zero.

没关系。
It doesn't matter.

所以PMP或任何连接,但只是将转发添加到零。
So PMP or any connection, but just to add forward to zero.

这是政策中看到的数字输出。
This is digital output saw in the policies.

您将看到数字输出和数字输入扩展模块或切口。
You will see digital output and digital input extension modules or cuts.

好的?
OK?

扩展模块,就在这里。
Extension module, it's right here.

那么这意味着什么呢?
So what does that means?

这是数字输出,仅提供 24 伏或零旧电压,或数字输入刚刚达到并向前趋于零。
This is digital output just gives 24 volt or zero old or digital inputs reached just to and forward towards zero.

而且,您还可以看到模拟输入和模拟输出卡。
But also, you can see analog input and analog output cards.

这些是模拟值以及我们如何读取它,好吗?
So these are the analog values and how we are reading it, OK?

首先,我想您了解模拟信号和数字信号,以及模拟值和数字值的差异。
First of all, I guess you understand analog and digital signals, differences in analog value and in digital.

你就是它在策略逻辑中的计算方式。
You're how it is calculating in the policy logic.

好的。
OK.

比如说这些模拟输入或者模拟输出就像这样,这个有一个分辨率。
For example, these analog inputs or analog outputs are like, this has a resolution.

让我们来看看。
Let's take a look.

想知道这个解决方案的意义是什么?
Wants to what is the meaning of this solution?

解决办法就是更换厂家。
The solution is change to manufacturer.

然后想象您的模拟输入是 12 位。
And then imagine your analog inputs are 12 bit.

该解决方案有 12 英尺。
The solution has 12 feet.

解决方案?
The solution?

那么现在我们该怎么办呢?
So now what will we do now?

我们会来到这里,我会说计算器。
We will come to here and I will say calculator.

然后在计算器内部,我们也需要做什么。
And then inside of the calculator, what we need to do too.

好的。
OK.

按 12 指数,结果为 496。
Exponential by 12 and it goes to four thousand ninety six.

就在这里。
That's right here.

所以这个12位模拟输入在隧道输入里面,你可以看到最多这个。
So this 12 bit analog input inside of tunnel input, you can see maximum this one.

那么菜单中的这是什么意思呢?
So what does that means in the menu?

当你从零到四千的时候你就会看到这个,好吗?
You will see this while you're zero to four thousand, OK?

那么这意味着什么呢?
So what does that means?

根据模拟,零伏和 10 伏?
Zero volt and 10 volt, according to analog?

那么你是怎么找到它的呢?
So how have you found it?

今天结束时,零位、位一和位二的位 OK 击败了 11。
The bits OK with zero and bit one and bit two at the end of today beat 11.

就这样两个人吧。
So two like that.

然后然后就可以了。
And then and then okay.

再加上两个扩展三个就OK了。
Plus and then two expansion by three OK.

最后以十为指数。
And at the end to exponential by eleven.

所以这就是结果是四万四千九十六。
So this is the result is four four thousand ninety six.

好的?
OK?

那么我们现在在这里所做的,我们正在使用一个传感器进行测量,该传感器给我们提供 0 到 10 伏的电压,好吗?
So what we are doing now in here, we are measuring with, for example, a sensor than this sensor is giving us zero to 10 volt, OK?

这个传感器正在寻找坦克,它看起来不错,距离在这里,或者这是 10 伏,或者这是滚动的,或者传感器可以在这里。
And this sensor is looking to tank and it and it is looking OK, distance is here or this is the 10 volt or this is rolled or the sensor can be here.

也许这样解释更符合逻辑,好吗?
Maybe it is better explain for logical, OK?

并且最近的位置是零,最大步行10。
And the closest position is zero and the maximum 10 walk.

所以当水像那样来到这里时,这个传感器正在读取,然后给出一个输出,例如,六个世界。
So when the waters came to here like that, this sensor is reading and then giving an output, for example, six world.

所以根据这个,零伏就是零。
So according to this, zero volt is zero.

10伏是4000伏。
10 volt is 4000.

六伏的结果是什么?
And what is the result of six volt?

所以按照切尔西的逻辑,它是四万两千四百。
So it goes to four two thousand four hundred in the Chelsea logic.

你正在做这个。
You are doing this.

读取模拟输入,OK,然后就可以写入了。
Read analog input, OK, and then you are writing it.

例如,50 个数据寄存器,然后在 50 个内部,您看起来不错。
For example, the 50 data registers and then inside of the 50, you are looking OK.

这个数值比如说是两千四百你说好,按照这个数值就是六倍。
The value is, for example, two thousand four hundred you are saying, OK, according to this value is six fold.

你得到这些,然后你说我的最高水平,例如,零百分比和 100% 的衡量标准,好的。
You are getting these and then you are saying my maximum level, for example, zero percentage and 100 percent measure, OK.

结果是,100 等于 4000,零百分比接近于零。
In the result, you are doing this 100 equals four thousand and zero percentage close to zero.

所以你把这个每一个百分比都除以 40。
So you are dividing this each one percentage equals to 40.

那么在这里,我们来划分一下。
So in here, let's divide it.

40.

40.

好的?
OK?

结果是 60。
The result is 60.

所以现在你说的是在中国境内,60%,好吧,60%。
So now you are saying inside of the PRC, 60, OK, 60 percentage.

您可以在英国税务海关总署 (HMRC) 上出示。
And on the HMRC, you can show it.

另外,这是您的 HMRC。
Also, this is your HMRC.

这是值 50,在这里用户可以看到 60。
And this is the value 50 and in here the user can see 60.

好的?
OK?

六。
Six.

水箱已填充的百分比。
The percentage of tank is filled.

好的。
OK.

然后让我们把它放在一个马达和司机将水送到外面。
And then let's put it a motor and motorists sending water to outside.

然后突然水位高出三倍多,反抗等于二。
And then suddenly water level is higher than tripled and revolt equals two.

按照这个,一千二百就可以了,除以40。
According to this, one thousand two hundred OK, divided by and 40.

现在我们所拥有的。
And now what we have.

30%。

30 percent.

好的。
OK.

像那样?
Like that?

所以现在我们也在学习扩展。
So now also we are learning is scaling.

这是一个缩放。
This is a scaling.

然后就这样?
And then like that?

好的。
OK.

这可不是什么好事。
This is not a good one.

小的。
Small.

好的。
OK.

从零到十,狼。
Zero to 10, Wolf.

好的。
OK.

零到四千。
And zero to four thousand.

所以现在我们正在做这样的恐慌,例如,如果您的模拟输入和输出是 14 位。
So now we are doing a scare like that, if your analog inputs and outputs are, for example, 14 bit.

结果会怎样呢?
What will the result?

所以两个指数乘以 14 因为所以 16,好吧,这是你的最高水平。
So two exponential by 14 because so 16, OK, this is your maximum level.

所以根据这些,你会做一个计算。
So according to these, you will do a calculations.

此外,模拟信号可以根据时间而改变。
Also, the analog signals can change according to time.

但是当它给出模拟信号时,模拟信号就不是这样的了。
But when it is giving an analog signals, analog signals are not like this one.

好的,现在开始这个交易。
OK, now this trade.

它可以考虑牧场或笼子之间的零到十,嗯,你可以获得任何数据,例如七点三十九分并像那样飞行。
It can give any thought to between the ranch or cage zero to 10, well, you can get any data, for example, seven point thirty nine and fly it like that.

但数字输出只是稳定,好的,5 倍或 24 伏或 20 伏交流电的 220,仅此而已。
But digital output just stable, OK, five fold or 24 volt or 220 for 20 volt AC, that's all.

这就是模拟信号和数字信号之间的区别,这些是政策和工业自动化中的用法。
So this is the difference between analog and digital signals, and these are the usages in the policy and also in the industrial automation.

就像结束之前一样,我会告诉你。
And like before the finish, I will just tell you.

想象一下,您又有一根管道,例如,水流向一侧,然后您将压力传感器放在这里。
Imagine you have a pipe again, one example and the water is going to one side and then you are putting here pressure sensor.

好的?
OK?

这是你的压力传感器。
This is your pressure sensor.

那么如何获得管道之间的压力呢?
So how can you get the for example, but or pressure between the pipe?

好吧,所以你可以你无法得到它。
OK, so you can you cannot get it.

您需要查看是否存在压力,是一个压力还是三个压力或条形音箱?
There is a pressure or not you need to see, is it one part or three bar or soundbar?

因此,您需要一个模拟信号,或者您可以说,例如,这是您的盒子,这是您的传感器。
So you need an analog signal or you can say, for example, this is your box and this is your sensor.

好的。
OK.

有没有书?
Are there any books or not?

因此传感器被检测并数字输出。
So the censor is detected and digital output.

所以这是您对政策的数字输入。
So this is your digital input in policy.

所以你读到,好吧,有一个盒子或者没有盒子,但是对于酒吧,为了计算,为了测量温度和压力以及其他呃和其他东西,好吗?
So you read, OK, there is a box or there is there is no box, but for the bar, for the calculations, for the measuring temperature and pressure and other uh and other things, OK?

您需要使用模拟信号。
You need to use analogue signal.

就这样。
That's all.

埃斯托里尔的模拟和数字信号还没有完成。
Analog and digital signals are like that aren't finished for Estoril.

在下一个教程中再见?
See you in the next tutorial?